Optimal. Leaf size=51 \[ \frac {a+b}{2 a^2 f \left (a \cos ^2(e+f x)+b\right )}+\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {4138, 444, 43} \[ \frac {a+b}{2 a^2 f \left (a \cos ^2(e+f x)+b\right )}+\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 444
Rule 4138
Rubi steps
\begin {align*} \int \frac {\tan ^3(e+f x)}{\left (a+b \sec ^2(e+f x)\right )^2} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x \left (1-x^2\right )}{\left (b+a x^2\right )^2} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1-x}{(b+a x)^2} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {a+b}{a (b+a x)^2}-\frac {1}{a (b+a x)}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac {a+b}{2 a^2 f \left (b+a \cos ^2(e+f x)\right )}+\frac {\log \left (b+a \cos ^2(e+f x)\right )}{2 a^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.72, size = 81, normalized size = 1.59 \[ \frac {(a+2 b) \log (a \cos (2 (e+f x))+a+2 b)+a \cos (2 (e+f x)) \log (a \cos (2 (e+f x))+a+2 b)+2 (a+b)}{2 a^2 f (a \cos (2 (e+f x))+a+2 b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 53, normalized size = 1.04 \[ \frac {{\left (a \cos \left (f x + e\right )^{2} + b\right )} \log \left (a \cos \left (f x + e\right )^{2} + b\right ) + a + b}{2 \, {\left (a^{3} f \cos \left (f x + e\right )^{2} + a^{2} b f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.00, size = 68, normalized size = 1.33 \[ \frac {\ln \left (b +a \left (\cos ^{2}\left (f x +e \right )\right )\right )}{2 a^{2} f}+\frac {1}{2 f a \left (b +a \left (\cos ^{2}\left (f x +e \right )\right )\right )}+\frac {b}{2 a^{2} f \left (b +a \left (\cos ^{2}\left (f x +e \right )\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 59, normalized size = 1.16 \[ -\frac {\frac {a + b}{a^{3} \sin \left (f x + e\right )^{2} - a^{3} - a^{2} b} - \frac {\log \left (a \sin \left (f x + e\right )^{2} - a - b\right )}{a^{2}}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.59, size = 97, normalized size = 1.90 \[ -\frac {\mathrm {atanh}\left (\frac {4\,b^2\,{\mathrm {tan}\left (e+f\,x\right )}^2}{8\,b^2+\frac {8\,b^3}{a}+4\,b^2\,{\mathrm {tan}\left (e+f\,x\right )}^2+\frac {8\,b^3\,{\mathrm {tan}\left (e+f\,x\right )}^2}{a}}\right )}{a^2\,f}-\frac {a+b}{2\,a\,b\,f\,\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a+b\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________